package cn.jjzd.info.api;

import cn.jjzd.info.pojo.Category;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Controller
@RequestMapping("category")
public interface CategoryApi {
    @GetMapping("{cid}")
    public List<Category> queryByCid(@PathVariable("cid")Long cid);

    @GetMapping("categoryList")
    public List<Category> queryCategoryList(@RequestParam("cid")Long cid);

    /*@GetMapping("categoryParentList")
    public List<SysCategory> queryByParentId(@RequestParam("parentId")Long parentId);*/
}
